#include "stdafx.h"
#include "Mini_link.h"

Mini_link :: Mini_link(unsigned char symbol_new)
{
	symbol = symbol_new;
	amount = 1;
	next = NULL;
}

int Mini_link :: Get_amount()
{
	return amount;
}

Mini_link * Mini_link :: GetNext()
{
	return next;
}

void Mini_link :: SetAmount(int amo)
{
	amount = amo;
}

unsigned char Mini_link :: GetSym()
{
	return symbol;
}

void Mini_link :: Increase()
{
	amount++;
}

void Mini_link :: SetNext(Mini_link *n)
{
	next = n;
}